import request from '@/utils/request'
let url = 'bpm'
export function getTaskAssignRuleList(query) {
  return request({
    url: `/${url}/bpm/task-assign-rule/list`,
    method: 'get',
    params: query
  })
}

export function createTaskAssignRule(data) {
  return request({
    url: `/${url}/bpm/task-assign-rule/create`,
    method: 'post',
    data: data
  })
}

export function updateTaskAssignRule(data) {
  return request({
    url: `/${url}/bpm/task-assign-rule/update`,
    method: 'put',
    data: data
  })
}
